package com.tjbklx1.dubbo.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DemoTest {
	
	public static void main(String[] args) {
		System.out.println("aaaaaaaaaaaa");
		
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] { "consumer.xml" });
		context.start();

		System.out.println("app run ");

		DemoService demoService = (DemoService) context.getBean("demoService");
		String hello = demoService.hello("world");
		System.out.println(hello);
	}
}
